<div class="page-body">
    <a class="btn btn-default purple" href="{:U('add')}" style="margin-bottom: 15px;"><i class="fa fa-plus"></i>
        新增图片
    </a>
    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption">轮播图片</span>
                    <div class="widget-buttons">
                        <a href="#" data-toggle="maximize">
                            <i class="fa fa-expand"></i>
                        </a>
                        <a href="#" data-toggle="collapse">
                            <i class="fa fa-minus"></i>
                        </a>
                        <a href="#" data-toggle="dispose">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="widget-body">
                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th>
                                ID
                            </th>
                            <th>
                                标题
                            </th>
                            <th>
                                链接
                            </th>
                            <th>
                                排序
                            </th>
                            <th></th>
                        </tr>
                        </thead>

                        <tbody>
                        <foreach name="data" item="v">
                            <tr>
                                <td>
                                    {$v.banner_id}
                                </td>
                                <td>
                                    <img src="{$v.pic_path}" height="100"><br>
                                    {$v.title}
                                </td>
                                <td>
                                    {$v.url|substr=0,1000}
                                </td>
                                <td>
                                    {$v.sort}
                                </td>
                                <td>
                                    <a class="btn btn-danger btn-xs del-btn" href="javascript:;"
                                       data-href="{:U('del',array('banner_id'=>$v['banner_id']))}"><i
                                            class="fa fa-trash-o"></i></a>
                                    <a class="btn btn-info btn-xs"
                                       href="{:U('edit',array('banner_id'=>$v['banner_id']))}">
                                        <i class="fa fa-edit"></i> 编辑
                                    </a>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>